# @shuaige : 陈世玉
# @name :抢课脚本.py
# @time :2024/11/20 22:25
# import reload
from time import *

import datetime
import requests
# import sys
# reload(sys)
# sys.setdefaultencoding("utf-8")


header={
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0',
    'Cookie':'JSESSIONID=D61117688989A57C8082F7813D74D63F'
}
url='https://jwgl.ayit.edu.cn/cas/login.action'
rs=requests.get(url,headers=header)
time=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
data={
    'params':'NzYyRjg1QkQ2ODM1NDMzNjFFRjZFRTVBOTYwMzFFMzJERjI4NDY5MTlGMTlEQjZEQzhCOTcyQzBBNTE5QUZFNUREQTY3QzlERDVDMDU3NjAwREMyNjZBQkJCRjAzMURDNUI2OUIyMjk3RTZCOTM4MDgxNzAyQzZCODYzRUFFRjJERjcyNjQ2M0FFMkM2MTNFNDI4NTcxQkVERkE2NTJFQjRGQzRGQTU1ODI2NUY1RDNGRjZGNTdFNTRENkIxNkFEQUQwMzc4OERDMUJBQjJBRDg2NDI4NUFBNjdFREU1NEQyREZGOUM3N0U0RTE4QkFCQjVENzE0NTY5NEY3N0JBM0VFRUZBQzVEQTZFMUIzNUNGMkQyM0RFNTlCQkYyMzM1RkVGOTYzMTA3MTk4Nzg4OTcwM0VBNTg5NDNGN0YyNjI3QThFMUEyQUYzMThGRjBENDQ4N0E5QkVCQjBDQzcyRjExRjQxM0ZCMzkzRDVGQTIxQkNCQ0UwRDZDQjRBRUEwMEY4MzdEMzk5MjhCNDkwMEM5QzE2NDIyMTJFNDQ1NDREMjdFNTQzODYzNEEwRUEyNjc5MDE4MDlBMTI5NzJGOTI2RjdGMDBBODg2N0JDQ0ZCMEZCOUU2N0Y2NTU4RjJGRjY4MUY5QTE5RTRCQzAwNDgzMjhGODQ4MTEwQUQ0NDQ4QkVCNjJBMEYxRDIyNjEyQTJBRTZFMzBDREMwMjUxN0MwRTUwMzZBMUREM0EwOEQyMDlCN0ZCRDM1MEQ4MERDQ0JGQzUzQzlBOTdEREFGMTEwQzkyOTIxRjM2REZFRDM5RTVDRTRDODkzQkU3QjBBMzI0QTg5ODAwODlDMEMyNkY4N0M2MDQxOTY1OEFDOEU0MzIzQ0VFRjc1QzNDN0U0NzEyMTA4MDI1M0MwOTQ1OEIyNTFFMUFEQzY2MUU4QzM4NTMwOTdBOTE5OEZFMjQ2RDEzQTE2MTQ4RDkwN0M5MDZEQ0Y2QzU5NjlGOUQ5NkE5NzUxNTNEMDU3QzM1ODVEM0IxOEJBMTE1MDZDOEZENTQ1NjIwNjEzQ0I5QjU4QzUzQUE2N0IxRkYzODlEREZE&token=a83e81bd7c77497401d6621085816ef6',
    'timestamp':time,
    'deskey':'78676173211419456615584',
    'ssessionid':'B67E3D3580A44E0946F86F3C0C64A5D5'
}

# print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time())))
# time=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
print(time)
rs=requests.post(url,data=data)

# rs.encoding='utf-8'
# print(rs.text)